﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using STHPMS1.ICore.I_Serv;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDm_Origpv_RegBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDm_Origpv_Reg;

        void Remove(IDm_Origpv_Reg entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDm_Origpv_Reg;
        /// <summary>
        /// 通过路段Id获取计算服务
        /// </summary>
        /// <param name="mainSegId"></param>
        /// <returns></returns>
        IModelCalculateService GetModelSerivce(string mainSegId);
        /// <summary>
        /// 通过模型Id获计算服务
        /// </summary>
        /// <param name="modelId"></param>
        /// <returns></returns>
        IModelCalculateService Load(string modelId);
    }
}
